
#include "app_device_inc.h"
#include "../app_main/app_inc.h"

/****************************************************                        
*				stm32f103x_app_open_RTC
* Description:	
* Arguments  :  
* Returns    :  
*****************************************************/
static void stm32f103x_app_open_SysTick( void *  p_device ){
	
	RCC_ClocksTypeDef  rcc_clocks;
	  	  
    RCC_GetClocksFreq(&rcc_clocks);

	OS_CPU_SysTickInit( ( rcc_clocks.HCLK_Frequency / TICKS_PER_SEC ) -1 );

}
/****************************************************                        
*				stm32f103x_AppInitDeviceSysTick
* Description:	
* Arguments  :  
* Returns    :  
*****************************************************/
void stm32f103x_AppInitDeviceSysTick( void  ){

	stm32f103x_app_open_SysTick( NULL);

}
